from django.db import models
from client.models import UserAccount

# Create your models here.
class styleSheet(models.Model):
    name = models.CharField(max_length=255, null=False, blank=False, verbose_name='样式表名称')
    intro = models.TextField(null=True, blank=True, verbose_name='样式表简介')
    designer = models.ForeignKey(UserAccount, null=False, verbose_name='设计者', on_delete=models.CASCADE)
    styleCSS = models.JSONField(null=False, verbose_name='样式表')
    label = models.CharField(max_length=25, null=False, default='div', verbose_name='样式表标签')